CPSW\Gateway\Abstract_Payment_Gateway D

Total Complexity 170
Dependencies 6
Dependents 0
Total lines 1,119
Lines of code 612
Logical lines of code 323
Comment lines 352
Methods 37
Properties 2

Methods 37

Method Rating Maintainability Complexity Lines of code
process_payment_with_saved_payment_method()
B
35 15 86
process_response()
A
43 14 44
create_stripe_customer()
A
48 13 28
process_refund()
A
47 9 31
update_balance()
A
49 9 28
is_available()
A
56 9 18
get_stripe_order_data()
A
47 7 38
get_stripe_default_currency()
A
53 8 21
get_customer_id()
A
55 8 21
get_metadata()
S
51 7 27
get_payment_intent()
S
47 6 36
get_token_from_request()
S
58 7 15
create_refund_request()
S
49 4 29
process_order()
S
54 4 18
is_retryable_error()
S
66 5 9
get_billing_country()
S
59 4 14
update_stripe_balance()
S
61 4 11
get_clients_details()
S
63 4 10
payment_icons()
S
58 2 15
save_payment_method_to_order()
S
64 3 10
is_using_saved_payment_method()
S
72 3 4
get_formatted_amount()
S
63 3 10
get_original_amount()
S
63 3 10
format_amount()
S
68 2 7
get_transaction_url()
S
67 2 8
should_save_card()
S
70 2 5
get_currency()
S
66 2 8
update_stripe_order_data()
S
72 2 5
prepare_payment_method()
S
61 1 13
get_order_description()
S
76 1 3
create_payment_for_saved_payment_method()
S
75 1 4
get_stripe_currency()
S
79 1 3
add_gateway_class()
S
76 1 4
get_stripe_net()
S
79 1 3
get_stripe_fee()
S
79 1 3
clean_statement_descriptor()
S
64 1 8
__construct()
S
71 1 5